package com.gupt.youhd.entity;/*
@author name
@data 2023/4/3-22:35
*/


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Product implements Serializable {   //一个商品对多张图片  一张图片对应一个商品    商品对图片  一对多
    private int productId;
    private int shopId;
    private String name;
    private BigDecimal price;
    private String brief;
    private String title;
    /**
     * 库存
     */
    private int  inventory;
    private List<Image> imageList;
}
